import dayjs from 'dayjs';

export default [
  {
    title: '生产型号',
    key: 'moduleNo'
  },
  {
    key: 'modifyTime',
    title: '录入时间',
    customRender: row => {
      return dayjs(row.modifyTime).format('YYYY-MM-DD HH:mm:ss');
    }
  },
  { key: 'inspectType', title: '检验类型' },
  { key: 'quantity', title: '检验数量(PNL)' },
  { key: 'drawingChangeChecks', title: '工程图变更检查' },
  { key: 'line', title: '线别' },
  { key: 'areaCopperRequired', title: '面铜要求值(um)' },
  { key: 'diameterRequired', title: '孔铜要求值(um)' },
  { key: 'faceCopperHighPotentialLeft', title: '面铜高电位左实际值(um)' },
  { key: 'faceCopperHighPotentialRight', title: '面铜高电位右实际值(um)' },
  { key: 'faceCopperHighPotentialCentre', title: '面铜高电位中实际值(um)' },
  { key: 'faceCopperMediumPotentialLift', title: '面铜中电位左实际值(um)' },
  { key: 'faceCopperMediumPotentialRight', title: '面铜中电位右实际值(um)' },
  { key: 'faceCopperMediumPotentialCentre', title: '面铜中电位中实际值(um)' },
  { key: 'faceCopperLowPotentialLeft', title: '面铜低电位左实际值(um)' },
  { key: 'faceCopperLowPotentialRight', title: '面铜低电位右实际值(um)' },
  { key: 'faceCopperLowPotentialCentre', title: '面铜低电位中实际值(um)' },
  { key: 'porousCopperHighPotentialLeft', title: '孔铜高电位左实际值(um)' },
  { key: 'porousCopperHighPotentialRight', title: '孔铜高电位右实际值(um)' },
  { key: 'porousCopperHighPotentialCentre', title: '孔铜高电位中实际值(um)' },
  { key: 'porousCopperMediumPotentialLift', title: '孔铜中电位左实际值(um)' },
  { key: 'porousCopperMediumPotentialRight', title: '孔铜中电位右实际值(um)' },
  { key: 'porousCopperMediumPotentialCentre', title: '孔铜中电位中实际值(um)' },
  { key: 'porousCopperLowPotentialLeft', title: '孔铜低电位左实际值(um)' },
  { key: 'porousCopperLowPotentialRight', title: '孔铜低电位右实际值(um)' },
  { key: 'porousCopperLowPotentialCentre', title: '孔铜低电位中实际值(um)' },
  { key: 'highAndLowPotentialRValue', title: '高低电位（R值）(um)' },
  { key: 'result', title: '判定' },
  { key: 'ngNum', title: '不良数' },
  { key: 'ngRatio', title: '不良率' },
  {
    title: '班别',
    key: 'shiftType',
    customRender: row => {
      return ['白班', '夜班'][row.shiftType];
    }
  },
  {
    title: '检验人',
    key: 'operator'
  },
  {
    title: '审核人',
    key: 'checker'
  },
  {
    title: '审核时间',
    key: 'checkTime'
  },
  {
    title: '备注',
    key: 'remark'
  }
];
